
package com.timber.util;

import java.awt.event.*;
import javax.swing.JTextField;


/**
 **  Class used to select any existing text in a JTextField so it can be
 **  easily overwritten
 **/
public class SelectTextFocusHandler extends FocusAdapter
{
  public void focusGained( FocusEvent fe )
  {
    //  Select all text in this text field
    ( ( JTextField )fe.getSource() ).selectAll();
  }
}
